<?php

require_once(REAL_PATH."/classes/content/mapper/mapper.php");
require_once(REAL_PATH."/classes/content/helpers/factory.php");
abstract class content_Abstract {
    protected $id;
    protected $addData;
    protected $activ;
    protected $body="";


    static function getCollection( $type ) {
        return content_HelperFactory::getCollection( $type );
    }
    function collection() {
        return self::getCollection( get_class( $this ) );
    }

    //setare

    public function setId($val) {
        $this->id = $val;
    }
    public function setAddData($var){
        $this->addData = $var;
    }

    public function setActiv($var){
        $this->activ = $var;
    }

    public function setBody($var){
        $this->body = $var;
    }


    //getare
    public function getId() {
        return $this->id;
    }

    public function getAddData(){
        return $this->addData;
    }

    public function getActiv(){
        return $this->activ;
    }

    public function getBody(){
        return $this->body;
    }
}

?>
